<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>练习1</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>

<body>
    <!-- <script>
        var func =v =>v;
        document.write(func(10));
        //10
    </script> -->
    <!-- <script>
        var func =(a,b) =>a+b;
        document.write(func(10,10));
        //20
    </script> -->
    <!-- <script>
        var func =(a,b) =>{
            let sum = a + b;
            return sum;
        };
        document.write(func(10,10));
        //20
    </script> -->
    <script>
        var func =(a,b) =>({name:a,age:b});
        document.write(func("张三",10).name);
        //张三
    </script>
</body>

</html>